package com.jic.market.impl;

import com.jic.market.common.enums.PromotionStatusEnum;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import java.util.ArrayList;
import java.util.List;

/**
 * @author xuyongliang
 * @version V1.0
 * @className PromotionStatusComponent
 * @description TODO
 * @date 2020/3/5
 */

@Service
public class PromotionStatusComponent {

    public List<Integer> promotionStatusList = new ArrayList<>();

    @PostConstruct
    public void init(){
        promotionStatusList.add(PromotionStatusEnum.TO_SUBMIT.getCode());
        promotionStatusList.add(PromotionStatusEnum.EXPIRED.getCode());
        promotionStatusList.add(PromotionStatusEnum.CLOSED.getCode());
        promotionStatusList.add(PromotionStatusEnum.AUDIT_NOT_PASS.getCode());
    }

}
